package com.jcp.serviceimp;

import java.util.List;

import com.jcp.daoimp.FilesDaoImp;
import com.jcp.entity.AddressBook;
import com.jcp.entity.Files;
import com.jcp.entity.FilesAndUserName;
import com.jcp.entity.FilesAndUsers;
import com.jcp.entity.FilesMin;
import com.jcp.service.FilesService;
import com.jcp.util.PageData;

public class FilesServiceImp implements FilesService {

	FilesDaoImp filesDaoImp=new FilesDaoImp();
	@Override
	public PageData<AddressBook> selUserPhoneByPage(int page,int pageSize,String keyword) {
		// TODO Auto-generated method stub
		return filesDaoImp.selUserPhoneByPage(page, pageSize, keyword);
	}
	@Override
	//增加档案
	public boolean addFiles(Files files) {
		// TODO Auto-generated method stub
		return filesDaoImp.addFiles(files);
	}
	@Override
	//删除档案
	public boolean delFiles(int fileId) {
		// TODO Auto-generated method stub
		return filesDaoImp.delFiles(fileId);
	}
	@Override
	//修改档案的方法
	public boolean updFiles(Files files) {
		// TODO Auto-generated method stub
		return filesDaoImp.updFiles(files);
	}
	@Override
	//全查询的方法
	public List<FilesAndUserName> selFiles(int fileid) {
		// TODO Auto-generated method stub
		return filesDaoImp.selFiles(fileid);
	}
	@Override
	//min查询的方法
	public List<FilesMin> selFiles1() {
		// TODO Auto-generated method stub
		return filesDaoImp.selFilesmin();
	}
	@Override
	//分页查询的方法
	public PageData<FilesMin> getselFilesminMinPage(int page, int pageSize) {
		// TODO Auto-generated method stub
		return filesDaoImp.getselFilesminMinPage(page, pageSize);
	}
	@Override
	//分页模糊查询的方法
	public PageData<FilesMin> getselFilesminMinPage1(int page, int pageSize, String strLike) {
		// TODO Auto-generated method stub
		return filesDaoImp.getselFilesminMinPage1(page, pageSize, strLike);
	}
	
	
	

	@Override
	public List<FilesAndUsers> Filesel(String strLike) {
		List<FilesAndUsers> list = filesDaoImp.Filesel(strLike);
		return list;
	}
	
	
	

}
